package com.acminds.fotoporter.persistence.entities;

// Generated Jan 14, 2012 10:31:36 AM by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.acminds.fotoporter.persistence.dto.*;

/**
 * FeatureSelected generated by customhbm2java
 */
@MappedSuperclass
public abstract class AbstractFeatureSelected extends
		com.acminds.fotoporter.persistence.BaseDTO implements
		java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer featureSelectedId;
	private ItemOrdered itemOrdered;
	private String featureGroupName;
	private String featureName;
	private BigDecimal featurePrice;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "FEATURE_SELECTED_ID", unique = true, nullable = false)
	public Integer getFeatureSelectedId() {
		return this.featureSelectedId;
	}

	public void setFeatureSelectedId(Integer featureSelectedId) {
		this.featureSelectedId = featureSelectedId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ITEM_ORDERED_ID", nullable = false)
	public ItemOrdered getItemOrdered() {
		return this.itemOrdered;
	}

	public void setItemOrdered(ItemOrdered itemOrdered) {
		this.itemOrdered = itemOrdered;
	}

	@Column(name = "FEATURE_GROUP_NAME", nullable = false, length = 60)
	public String getFeatureGroupName() {
		return this.featureGroupName;
	}

	public void setFeatureGroupName(String featureGroupName) {
		this.featureGroupName = featureGroupName;
	}

	@Column(name = "FEATURE_NAME", nullable = false, length = 60)
	public String getFeatureName() {
		return this.featureName;
	}

	public void setFeatureName(String featureName) {
		this.featureName = featureName;
	}

	@Column(name = "FEATURE_PRICE", nullable = false, precision = 8)
	public BigDecimal getFeaturePrice() {
		return this.featurePrice;
	}

	public void setFeaturePrice(BigDecimal featurePrice) {
		this.featurePrice = featurePrice;
	}

}
